package com.huo.filestransport.dao;

import com.huo.filestransport.entity.FtpFileInfoEntity;
import com.huo.util.Query;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FtpFileInfoDao {
    int deleteByPrimaryKey(Long id);

    int insert(FtpFileInfoEntity record);

    int insertSelective(FtpFileInfoEntity record);

    FtpFileInfoEntity selectByPrimaryKey(Long id);
    
    FtpFileInfoEntity selectByFtpFilePath(String ftpfilepath);
    
    List<FtpFileInfoEntity> selectAll(Query query);
    
    int selectCount(Query query);
    
    List<FtpFileInfoEntity> selectByFtpFileStatus(String ftpfilestatus);

    List<FtpFileInfoEntity> selectByFtpFileStatusAndDatadate(FtpFileInfoEntity record);

    int updateByPrimaryKeySelective(FtpFileInfoEntity record);

    int updateByPrimaryKey(FtpFileInfoEntity record);
    
    void truncateTable();

    FtpFileInfoEntity selectBySelective(FtpFileInfoEntity record);

    int updateCurrentData(String dataDate);

    String selectCurrentData();
}